.translation-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(4px);
}

.translation-progress-modal {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 16px 16px 0 0;
}

.progress-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.cancel-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: #c82333;
}

.progress-content {
  padding: 24px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.current-translation {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #007bff;
}

.current-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.current-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  min-height: 20px;
  word-break: break-all;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .translation-progress-modal {
    width: 95%;
    margin: 10px;
  }

  .progress-header {
    padding: 16px 20px;
  }

  .progress-header h3 {
    font-size: 15px;
  }

  .progress-content {
    padding: 20px;
  }

  .current-translation {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .translation-progress-modal {
    width: 100%;
    height: auto;
    margin: 20px;
    border-radius: 12px;
  }

  .progress-header {
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
  }

  .progress-header h3 {
    font-size: 14px;
  }

  .cancel-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .progress-content {
    padding: 16px;
  }

  .progress-stats {
    font-size: 13px;
  }

  .current-label {
    font-size: 11px;
  }

  .current-text {
    font-size: 13px;
  }
}